home *** CD-ROM | disk | FTP | other *** search
- I am considering developing a Stellar 7 -style game, and I need 3D
- projection routines for that. I have read that a basic projection
- formula would be:
- Xscreen = (D*X)/(Z+D)
- Yscreen = (D*Y)/(Z+D)
- where X, Y and Z are the 3D coordinates and D is the distance of the
- eye from the screen. However, these routines tend to elongate objects
- in the distance. Is there any way to use more realistic formulas?
-
-
- /----------------------------------------------------------------------\
- | Joona Palaste | | | |
- | palaste@cc.helsinki.fi | | | |
- | G++ FR FW+ M- #20 D+ ADA N+++ W++ B OP+ |------- -----------------|
- | |------- -----------------|
- | | | | |
- | Finland rules! => | | | |
- \----------------------------------------------------------------------/
-
-
-